// It's always optimal to move the table either horizontally or vertically.

